<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>test device authorization/authentication demo</title>
<script type="text/javascript" src="../resources/easyui/jquery-1.6.min.js"></script>
<script type="text/javascript">
$(function(){
	$("#noId").click(function(){
		$.ajax({
			url:'../system/mvc/user/usermgt/list',
			beforeSend:function(xhr){
				//xhr.appendHader("","");
			},
			success:function(r){
				alert(r);
			},
			error:function(e){
				alert("http status:"+e.status);
			}
		});
	});
	

	$("#id").click(function(){
		$.ajax({
			url:'../system/mvc/user/usermgt/list',
			beforeSend:function(xhr){
				xhr.appendHader("","");
			},
			success:function(r){
				alert(r);
			},
			error:function(e){
				alert("http status:"+e.status);
			}
		});
	});
});
</script>
</head>
<body>
<a id="noId" href="#" onclick="return false;">test no deviceId</a><p>server will return 401</p>
<a id="id" href="#" onclick="return false;">test has deviceId</a><p>server will return 200</p>
<a id="noPerm" href="#" onclick="return false;">test no permission</a><p>server will return 403</p>
<a id="perm" href="#" onclick="return false;">test permission</a><p>server will return 200</p>
</body>
</html>